package com.wonders.frame.entity;

import com.wonders.frame.core.entity.EntityTemplate;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author 顾乘瑞
 * @Description TODO
 * @Date 2020/8/18 2:00 PM
 */
@Table(name = "t_etl_task_log")
@Data
public class ETLTaskLog extends EntityTemplate {

    @OneToOne
    @JoinColumn(name = "task_id", referencedColumnName = "id")
    private  ETLTask task;
    @Column(name = "task_execute_status", columnDefinition = "number(2) COMMENT '任务执行状态 0：执行成功 1：执行中 2：执行失败'")
    private Integer taskExecuteStatus;
    @Column(name = "execute_time", columnDefinition = "datetime COMMENT '最新执行时间'")
    private Date executeTime;
    @Column(name = "execute_exception", columnDefinition = "varchar2(500) COMMENT '异常日志'")
    private String executeException;

}
